package Car_species;

import Car.Car.Car;

public class Hc extends Car {

    private double carry_size;

    @Override
    public void setPassenger_size(int passenger_size) {

    }

    @Override
    public int getPassenger_size() {
        return 0;
    }

    @Override
    public void setCarry_size(double carry_size) {
        this.carry_size = carry_size;
    }

    @Override
    public double getCarry_size() {
        return carry_size;
    }

    @Override
    public String toString(){
        return "车名:" + this.getName() + "; 载货量" + this.carry_size + ";  价格为:" + this.getPrice();
    }
}
